<?php echo $this->Html->css(array(HOST.'/coin-slider-styles'),null,array('inline'=>false));?>
<?php echo $this->Html->script(array(HOST.'/coin-slider.min'),$options = array('allowCache'=>false,'safe'=>false,'inline'=>false));?>
<?php
echo $javascript->codeBlock("
			$(function() {
				// Slider
				$('#coin-slider').coinslider({width:630,height:315,opacity:1});
			});
		",$options = array('allowCache'=>false,'safe'=>false,'inline'=>false));
?>
		
<div class="container container_category_4">
	<div id="coin-slider" class="coin-slider">
	<div id="nav_wrapper">
		<?php
			foreach ($offers as $k => $offer){
				$image = (isset($offer['ViewOffer']['image'])) ? $offer['ViewOffer']['image'] : '&nbsp;';
				echo  $this->Html->link($fileUpload->image($image,array('autoResize'=>true,'width'=>630,'imagePathOnly'=>false))."<span>".__('kliknij...',true)."</span>"
					, array('controller'=>'offers','action' => 'view', $offer['ViewOffer']['id'],Inflector::slug($offer['ViewOffer']['miasto'],'-')),array('escape'=>false,'title'=>'miasto: '.$offer['ViewOffer']['miasto'].'; ulica: '.$offer['ViewOffer']['ulica']));

			}
		?>
	</div>
	</div>
</div>